U_CAPI int32_t unum_parse ( const UNumberFormat* fmt, const UChar* text, int32_t textLength, int32_t *parsePos , UErrorCode *status)

Parse a string into an integer using a UNumberFormat

Documentation

Parse a string into an integer using a UNumberFormat. The string will be parsed according to the UNumberFormat's locale.
Returns:
The value of the parsed integer
Parameters:
fmt - The formatter to use.
text - The text to parse.
textLength - The length of text, or -1 if null-terminated.
parsePos - If not 0, on input a pointer to an integer specifying the offset at which to begin parsing. If not 0, on output the offset at which parsing ended.
status - A pointer to an UErrorCode to receive any errors
See Also:
unum_parseDouble
unum_format
unum_formatDouble

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de